package com.inca.shop.order.fegin;

import com.inca.shop.bean.User;
import com.inca.shop.order.fegin.fallback.UserServiceFallBack;
import com.inca.shop.order.fegin.fallback.factory.UserServiceFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "server-user", path = "/user", fallback = UserServiceFallBack.class)
//@FeignClient(value = "server-user", path = "/user", fallback = UserServiceFallBackFactory.class)
public interface UserService {
    @GetMapping(value = "/get/{uid}")
    User getUser(@PathVariable("uid") Long uid);
}
